package com.penghaisoft.microwms.base.web.auth.service;


import com.penghaisoft.microwms.common.base.model.BaseUserResroleKey;
import com.penghaisoft.microwms.common.dto.Resp;

import java.util.List;

/**
 * Created by zxcq0 on 2017/3/3.
 * 用户-角色关联
 */
public interface IUserResroleService {

    public Resp addResroles(List<BaseUserResroleKey> userResroleKeys);

    public Resp deleteResroles(List<BaseUserResroleKey> userResroleKeys);

    public Resp deleteByUserIds(List<String> userIds);

    public Resp deleteByResroleIds(List<String> resroleIds);

    public List<String> queryUserResroleIds(BaseUserResroleKey condition);
    
    public Resp updateUsrRoleRelation(List<String> userIdList, List<BaseUserResroleKey> list);
}
